﻿using System;
using System.Diagnostics;
using System.IO;
using System.Web;
using JsonDbTestWebSite.Core;

namespace JsonDbTestWebSite
{
	public class Global : HttpApplication
	{
		protected void Application_Start(object sender, EventArgs e)
		{
			Debug.Write("Global :: Application_Start");
			string path = Path.Combine(HttpRuntime.AppDomainAppPath, @"app_data\SiteData");
			Repository repository = new Repository(path);
			Application["Repository"] = repository;
		}

		protected void Session_Start(object sender, EventArgs e)
		{
		}

		protected void Application_BeginRequest(object sender, EventArgs e)
		{
		}

		protected void Application_AuthenticateRequest(object sender, EventArgs e)
		{
		}

		protected void Application_Error(object sender, EventArgs e)
		{
		}

		protected void Session_End(object sender, EventArgs e)
		{
		}

		protected void Application_End(object sender, EventArgs e)
		{
		}
	}
}